<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // var Name = function () {
        //     this.name = 'ganzhibin'
        // }
        // var obj = new Name()
        // console.log(obj.name) // ganzhibin
        var Name = function () {
            this.name = 'ganzhibin'
            return {
                name: 'lisi'
            }
        }
        var obj = new Name()
        console.log(obj.name) // ganzhibin
    </script>
</body>

</html>